package com.cn.wanxi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 邮件内容
 */
@Data
//@NoArgsConstructor
//@AllArgsConstructor
public class MailEntity implements Serializable {

    /**
     * 邮件接收方，可多人
     */
    private String[] tos;

    private String to;
    /**
     * 邮件主题
     */
    private String subject;
    /**
     * 邮件内容
     */
    private String content;



    @Override
    public String toString() {
        return "MailEntity{" +
                "tos=" + Arrays.toString(tos) +
                ", to='" + to + '\'' +
                ", subject='" + subject + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}